package si.yun.dao;

import org.apache.ibatis.annotations.Param;
import si.yun.entity.SyCourseRecord;
import si.yun.entity.SyCourseRecordExample;

import java.util.List;
import java.util.Map;

public interface SyCourseRecordMapper {
    long countByExample(SyCourseRecordExample example);

    int deleteByExample(SyCourseRecordExample example);

    int insert(SyCourseRecord record);

    int insertSelective(SyCourseRecord record);

    List<SyCourseRecord> selectByExample(SyCourseRecordExample example);

    int updateByExampleSelective(@Param("record") SyCourseRecord record, @Param("example") SyCourseRecordExample example);

    int updateByExample(@Param("record") SyCourseRecord record, @Param("example") SyCourseRecordExample example);
    /*
     * @Author wrr
     * @Description 查询审核记录
     * @Date 2021/8/10 10:07
     * @Param
     * @return
     */
    List<Map<String, Object>> selCourseRecord(@Param("type") Integer type, @Param("course_id") Integer course_id);
    /**
     * @Description: 李军瑶商品审核详情
     * @return: java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
     * @Date: 2021/10/13 15:06
     */
    List<Map<String, Object>> getAuditDetails(@Param("type") Integer type, @Param("productId") Integer productId);

}